<?php


function myprint($struct){
	echo "<pre>";
	print_r($struct);
	echo "</pre>"; 
	}



function get_parameter($name){
	if (isset($_GET[$name]) )  return $_GET[$name];
	if (isset($_POST[$name])) return $_POST[$name];
	return null;
}

function show_all_parameters(){
	echo "POST<br/>";
	myprint($_POST);

	echo "<br/>GET<br/>";
	myprint($_GET);
	echo "<hr>";
}
?>
